<?php
use think\facade\Route;

Route::group(function() {

})->middleware('check');

//购物车管理理由
Route::post('cart_add','api/CartController/addCart');
Route::get('cart_list','api/CartController/cartList');
Route::get('cart_del','api/CartController/cartDel');
Route::put('cart_up','api/CartController/cartUpdate');

//收货地址管理路由
Route::post('receive_address_add','api/AddressController/addressAdd');
Route::get('receive_address_list','api/AddressController/addressList');
Route::get('receive_address_del','api/AddressController/addressDel');
Route::put('receive_address_up','api/AddressController/addressUp');

//社区管理社区活动
Route::get('communityList','api/Community/communityList');
Route::post('communityLike','api/Community/communityLike');
Route::post('communityLeaving','api/Community/communityLeaving');

//淘口令生成
Route::post('amoypasswordDo','api/Amoy/amoypasswordDo');
Route::post('cart_add','CartController/addCart');
Route::get('cart_list','CartController/cartList');
Route::get('cart_del','CartController/cartDel');
Route::put('cart_up','CartController/cartUpdate');

//收货地址管理路由
Route::post('receive_address_add','AddressController/addressAdd');
Route::get('receive_address_list','AddressController/addressList');
Route::get('receive_address_del','AddressController/addressDel');
Route::put('receive_address_up','AddressController/addressUp');


Route::group(function (){
    Route::get('ExpressAll','Express/ExpressAll');
});

//查询已有砍价商品接口
Route::get('Bargain','BargainController/bargain_Already');
Route::get('self_cut','BargainController/self_cut');

//查询已有砍价商品接口
Route::get('Bargain','BargainController/bargain_Already');
Route::get('self_cut','BargainController/self_cut');

Route::get('group_master_index','GroupMaster/GroupMasterIndex');
Route::get('group','GroupMaster/group');
Route::get('group_select','GroupMasters/groupSelect');
Route::get('config','GroupMasters/config');

Route::get('group_index','GroupReport/groupIndex');
Route::get('group_data','GroupReport/GroupData');
Route::post('ajax','GroupReport/ajax');
Route::get('group_index','GroupReport/groupIndex');
Route::post('ajax','GroupReport/ajax');

//社区活动功能
Route::get('user_list','UserController/show');
Route::get('activity_type','CommunityActivityController/type');
Route::post('send_message','CommunityActivityController/sendMessage');
Route::post('add_message','CommunityActivityController/addMessage');
//生命周期
Route::get('order_status','OrderController/orderStatus');
Route::post('cart_add','api/CartController/addCart');
Route::get('cart_list','api/CartController/cartList');
Route::get('cart_del','api/CartController/cartDel');
Route::put('cart_up','api/CartController/cartUpdate');

//收货地址管理路由
Route::post('receive_address_add','api/AddressController/addressAdd');
Route::get('receive_address_list','api/AddressController/addressList');
Route::get('receive_address_del','api/AddressController/addressDel');
Route::put('receive_address_up','api/AddressController/addressUp');

//社区管理社区活动
Route::get('communityList','api/Community/communityList');
Route::post('communityLike','api/Community/communityLike');
Route::post('communityLeaving','api/Community/communityLeaving');

//淘口令生成
Route::post('amoypasswordDo','api/Amoy/amoypasswordDo');
Route::get('group_index','GroupReport/groupIndex');
Route::post('ajax','GroupReport/ajax');